﻿<%@ Page Language="C#" MasterPageFile="~/cp/admin/AdminMasterPage.master" AutoEventWireup="true" CodeBehind="addnews.aspx.cs" Inherits="E2_WEBSITE.cp.admin.site.addnews" Title="Thêm tin mới" ErrorPage="~/Common/Error.aspx" %>
<%@ Register TagPrefix="ed" Namespace="OboutInc.Editor" Assembly="obout_Editor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
    Tiêu đề:
    <br />
    <asp:TextBox ID="tbTitle" runat="server" Width="100%"></asp:TextBox>
    <asp:RequiredFieldValidator ID="reqTitle" runat="server" 
    ErrorMessage="Hãy nhập tiêu đề cho bản tin" ControlToValidate="tbTitle"></asp:RequiredFieldValidator>
    <br />
    Nội dung:
    <br />
    <ed:Editor PathPrefix="Editor_data/" id="edContent" runat="server" 
        Appearance="lite" ModeSwitch="False" 
        UpperSuggest="False" AjaxCurrentContent="False" AjaxWait="True" FixedToolBar="True" Show="True" ShowPlaceHolders="False" ShowQuickFormat="False" Submit="False">
    </ed:Editor>
    <br />
    <center>
        <asp:Button ID="btnAdd" runat="server" Text="Chấp nhận" 
            onclick="btnAdd_Click" />
        &nbsp;</center>
</asp:Content>
<asp:Content ID="Content4" runat="server" contentplaceholderid="info">
Nhập thông tin tin tức để thêm vào cơ sở dữ liệu
</asp:Content>

